import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import VueAxios from 'vue-axios'
import axios from './utils/request'
import {mockXHR} from './mock'
import { store, key } from './store';
import other from '@/utils/other';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import './assets/less/reset.less'
import './theme/index.less'
const app= createApp(App)

other.elSvg(app);

app.use(store, key)
app.use(router)
app.use(VueAxios, axios)
app.use(ElementPlus)

if(import.meta.env.MODE === 'development') {
    mockXHR()
}


app.mount('#app')
